﻿using System;
using ch03.binary.wasm_reader;
using ch03.cmd;

namespace ch03
{
    class Program
    {
        static void Main(string[] args)
        {
            var (module, err) = WasmReader.DecodeFile("binary/testdata/hw_rust.wasm");
//   var (module, err) = WasmReader.DecodeFile("E:\\codes\\GolandProjects\\src\\wasmgo-book\\code\\wat\\ch03_eg4_block.wasm");

            if (err == null)
            {
                Dumper.Dump(module);
            }
            else
            {
                Console.WriteLine(err);
            }
        }
    }
}